package com.os.ordersystem.mapper;

import com.os.ordersystem.bean.Food;
import com.os.ordersystem.bean.Order;
import com.os.ordersystem.bean.OrderInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    //新增订单
    int add(Order order);
    //订单付款
    int payOrder(Integer id);
    //订单删除
    int del(Integer id);
    //分页
    List<Order> getByPage(Map<String, Object> map);
    //获取对应订单数量
    long getTotal(String name);

    List<Order> getByPageC(Map<String, Object> map);
    long getTotalC(Integer id);


}
